package com.microservice.salmon.db.entities;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "t_order_refunds")
public class OrderRefund {
    /**
     * 自增ID
     */
    @Id
    private Integer id;

    /**
     * 订单Id
     */
    @Column(name = "order_id")
    private Integer orderId;

    /**
     * 接收退款用户ID
     */
    @Column(name = "refund_to")
    private Integer refundTo;

    /**
     * 退单原因
     */
    @Column(name = "refund_reson")
    private Integer refundReson;

    /**
     * 退单其他原因
     */
    @Column(name = "refund_other_reson")
    private String refundOtherReson;

    /**
     * 退返金额
     */
    @Column(name = "back_money")
    private BigDecimal backMoney;

    /**
     * 退款流水号
     */
    @Column(name = "refund_trade_no")
    private String refundTradeNo;

    /**
     * 退款备注
     */
    @Column(name = "refund_remark")
    private String refundRemark;

    /**
     * 退款时间
     */
    @Column(name = "refund_time")
    private Date refundTime;

    /**
     * 店铺不同意拒收原因
     */
    @Column(name = "shop_reject_reason")
    private String shopRejectReason;

    /**
     * 退款状态 0 未退 1 已退
     */
    @Column(name = "refund_status")
    private Byte refundStatus;

    /**
     * 创建时间(用户申请退款时间)
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 获取自增ID
     *
     * @return id - 自增ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置自增ID
     *
     * @param id 自增ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取订单Id
     *
     * @return order_id - 订单Id
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 设置订单Id
     *
     * @param orderId 订单Id
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取接收退款用户ID
     *
     * @return refund_to - 接收退款用户ID
     */
    public Integer getRefundTo() {
        return refundTo;
    }

    /**
     * 设置接收退款用户ID
     *
     * @param refundTo 接收退款用户ID
     */
    public void setRefundTo(Integer refundTo) {
        this.refundTo = refundTo;
    }

    /**
     * 获取退单原因
     *
     * @return refund_reson - 退单原因
     */
    public Integer getRefundReson() {
        return refundReson;
    }

    /**
     * 设置退单原因
     *
     * @param refundReson 退单原因
     */
    public void setRefundReson(Integer refundReson) {
        this.refundReson = refundReson;
    }

    /**
     * 获取退单其他原因
     *
     * @return refund_other_reson - 退单其他原因
     */
    public String getRefundOtherReson() {
        return refundOtherReson;
    }

    /**
     * 设置退单其他原因
     *
     * @param refundOtherReson 退单其他原因
     */
    public void setRefundOtherReson(String refundOtherReson) {
        this.refundOtherReson = refundOtherReson;
    }

    /**
     * 获取退返金额
     *
     * @return back_money - 退返金额
     */
    public BigDecimal getBackMoney() {
        return backMoney;
    }

    /**
     * 设置退返金额
     *
     * @param backMoney 退返金额
     */
    public void setBackMoney(BigDecimal backMoney) {
        this.backMoney = backMoney;
    }

    /**
     * 获取退款流水号
     *
     * @return refund_trade_no - 退款流水号
     */
    public String getRefundTradeNo() {
        return refundTradeNo;
    }

    /**
     * 设置退款流水号
     *
     * @param refundTradeNo 退款流水号
     */
    public void setRefundTradeNo(String refundTradeNo) {
        this.refundTradeNo = refundTradeNo;
    }

    /**
     * 获取退款备注
     *
     * @return refund_remark - 退款备注
     */
    public String getRefundRemark() {
        return refundRemark;
    }

    /**
     * 设置退款备注
     *
     * @param refundRemark 退款备注
     */
    public void setRefundRemark(String refundRemark) {
        this.refundRemark = refundRemark;
    }

    /**
     * 获取退款时间
     *
     * @return refund_time - 退款时间
     */
    public Date getRefundTime() {
        return refundTime;
    }

    /**
     * 设置退款时间
     *
     * @param refundTime 退款时间
     */
    public void setRefundTime(Date refundTime) {
        this.refundTime = refundTime;
    }

    /**
     * 获取店铺不同意拒收原因
     *
     * @return shop_reject_reason - 店铺不同意拒收原因
     */
    public String getShopRejectReason() {
        return shopRejectReason;
    }

    /**
     * 设置店铺不同意拒收原因
     *
     * @param shopRejectReason 店铺不同意拒收原因
     */
    public void setShopRejectReason(String shopRejectReason) {
        this.shopRejectReason = shopRejectReason;
    }

    /**
     * 获取退款状态 0 未退 1 已退
     *
     * @return refund_status - 退款状态 0 未退 1 已退
     */
    public Byte getRefundStatus() {
        return refundStatus;
    }

    /**
     * 设置退款状态 0 未退 1 已退
     *
     * @param refundStatus 退款状态 0 未退 1 已退
     */
    public void setRefundStatus(Byte refundStatus) {
        this.refundStatus = refundStatus;
    }

    /**
     * 获取创建时间(用户申请退款时间)
     *
     * @return create_time - 创建时间(用户申请退款时间)
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间(用户申请退款时间)
     *
     * @param createTime 创建时间(用户申请退款时间)
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}